import Vue from 'vue'
import VueI18n from 'vue-i18n'
import english from './lang/en.js'
import simplified from './lang/zhCH.js'
import traditional from './lang/tra.js'
import state from '@/store/state.js'
Vue.use(VueI18n);

const i18n = new VueI18n({
    locale:  state.lang_type || 'traditional',
    messages: {
        'english': english,
        'simplified' : simplified,
		'traditional' : traditional
    }
});

export default i18n